//Component Object
Component({
    properties: {
        title: String
    },
    data: {

    },
    methods: {
        setNavSize: function () {
            const systemInfo = wx.getSystemInfoSync();
            const statusBarHeight = systemInfo.statusBarHeight;
            const os = systemInfo.system;
            let navHeight;
            if (os.indexOf('IOS') > -1) {
                navHeight = 44
            } else {
                navHeight = 48
            }
            this.setData({
                statusBarHeight,
                navHeight
            })
        }
    },
    created: function () {

    },
    attached: function () {
        this.setNavSize();
    },
    ready: function () {

    },
    moved: function () {

    },
    detached: function () {

    },
});